<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /*console.log('哈哈哈')
        alert("未满18不能进让")弹出警示框*/
       //document.write("你的名字是什么", "<br>","老王")/*内容直接插入html body里*/
        var x=prompt('你的名字是什么');/*=input*/
        console.log(x)/*=print*/

      

    </script>
</head>
<body>
    
</body>
</html>